package com.pr.service;

/**
 * @description:
 * @projectName:spring-skill
 * @see:com.pr.service
 * @author:LXC
 * @createTime:2024/6/19 10:34
 * @version:1.0
 */
public class Service {

    synchronized public void service1(){
        System.out.println("service1");
        service2();
    }

    synchronized public void service2(){
        System.out.println("service2");
        service3();
    }

    synchronized public void service3(){
        System.out.println("service3");
    }
}
